﻿namespace HumanExercise
{
    public class Employee : Human
    {
        private float weekSalary;
        private float workHoursPerDay;

        public Employee(string employeeFirstName, string employeeLastName, float employeeWeekSalary, float employeeWorkHoursPerDay)
            : base(employeeFirstName, employeeLastName)
        {
            this.WeekSalary = employeeWeekSalary;
            this.WorkHoursPerDay = employeeWorkHoursPerDay;
        }

        public float WeekSalary
        {
            get
            {
                return this.weekSalary;
            }

            private set
            {
                this.weekSalary = value;
            }
        }

        public float WorkHoursPerDay
        {
            get
            {
                return this.workHoursPerDay;
            }

            private set
            {
                this.workHoursPerDay = value;
            }
        }

        public decimal MoneyPerHour()
        {
            return (decimal)(this.weekSalary / (this.workHoursPerDay * 5));
        }
    }
}